package com.xbongbong.paas.service;

import com.xbongbong.paas.elasticsearch.pojo.dto.AssociationListDataDTO;
import com.xbongbong.paas.pojo.vo.AssociationListDataVO;
import com.xbongbong.paas.toolbox.exception.XbbException;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/9/3 11:07
 * @since v1.0
 */
public interface AssociationService {

    /**
     * 获取关联列表的数据列表
     * @param associationListDataDTO 对象
     * @return 返回关联列表的数据列表
     * @throws XbbException 抛出业务异常
     */
    AssociationListDataVO associationListDataList(AssociationListDataDTO associationListDataDTO) throws XbbException;

    /**
     * 删除表单时，需要更新关联列表的设置
     * @param corpid
     * @param formId
     * @param businessType
     * @throws XbbException
     */
    void updateAssociation(String corpid, Long formId, Integer businessType) throws XbbException;
}
